<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		.box{
			width: 200px;
			height: 200px;
			background: gray url() 0 0 no-repeat;
		}
	</style>
	<script type="text/javascript">
	window.onload = function (){
		var a = document.getElementById('box')  ;
	
	    a.onmouseover = function(){
	    	a.style.backgroundColor='red';
	    }

	    a.onmouseleave = function(){
	    	a.style.backgroundColor='gray'
	    }
	    a.onclick = function(){
	    	alert(8888)
	    }
	    var b = document.getElementsByClassName('input');

	    b[0].onblur = function(){
	    	alert(5555)
	    }

	    b[0]
	}

	</script>
</head>
<body>
	<div class="box" id='box'></div>
	<input type="text" class="input">
</body>
</html>